/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.customsdeclarationinfo;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 报关资料Entity
 * @author LV
 * @version 2021-03-02
 */
@Table(name="t_customs_declaration_info_detail", alias="a", columns={
		@Column(name="customs_declaration_info_detail_id", attrName="customsDeclarationInfoDetailId", label="报关资料明细ID", isPK=true),
		@Column(name="info_name", attrName="infoName", label="资料名称", queryType=QueryType.LIKE),
		@Column(name="remarks", attrName="remarks", label="备注", isQuery=false),
		@Column(name="customs_declaration_info_id", attrName="customsDeclarationInfoId.customsDeclarationInfoId", label="报关资料ID"),
	}, orderBy="a.customs_declaration_info_detail_id ASC"
)
public class CustomsDeclarationInfoDetail extends DataEntity<CustomsDeclarationInfoDetail> {
	
	private static final long serialVersionUID = 1L;
	private String customsDeclarationInfoDetailId;		// 报关资料明细ID
	private String infoName;		// 资料名称
	private CustomsDeclarationInfo customsDeclarationInfoId;		// 报关资料ID 父类
	
	public CustomsDeclarationInfoDetail() {
		this(null);
	}


	public CustomsDeclarationInfoDetail(CustomsDeclarationInfo customsDeclarationInfoId){
		this.customsDeclarationInfoId = customsDeclarationInfoId;
	}
	
	public String getCustomsDeclarationInfoDetailId() {
		return customsDeclarationInfoDetailId;
	}

	public void setCustomsDeclarationInfoDetailId(String customsDeclarationInfoDetailId) {
		this.customsDeclarationInfoDetailId = customsDeclarationInfoDetailId;
	}
	
	@Length(min=0, max=100, message="资料名称长度不能超过 100 个字符")
	public String getInfoName() {
		return infoName;
	}

	public void setInfoName(String infoName) {
		this.infoName = infoName;
	}
	
	@Length(min=0, max=64, message="报关资料ID长度不能超过 64 个字符")
	public CustomsDeclarationInfo getCustomsDeclarationInfoId() {
		return customsDeclarationInfoId;
	}

	public void setCustomsDeclarationInfoId(CustomsDeclarationInfo customsDeclarationInfoId) {
		this.customsDeclarationInfoId = customsDeclarationInfoId;
	}
	
}